<?php

	$hostname="localhost";

	$username="root";

	$password="";

	$databasename="du_lich";	

	$conn = @mysql_connect($hostname,$username,$password);

	if(!$conn){

		echo "Can not connect on server.";

		exit();

	}

	$select_db = @mysql_select_db($databasename,$conn);

	if(!$select_db) {

		echo "Can not select on database.";

		exit();

	}

	//ini_set("memory_limit","256M");

	mysql_query('SET CHARACTER SET utf8');	//định dạng kiểu TV trong csdl

	date_default_timezone_set('Asia/Ho_chi_minh');//định ngày giừo cho PHP

?>	

